function po_fa_save_fuel () {
    // Save fuel in the tank
    var fuel = document.getElementById ("fuel");
    if (fuel){
        localStorage.setItem ("fa_fuel", fuel.textContent);
    }
    
    // Save fuel in teh cargo
    fuel = document.getElementById ("tdCargoRes16");
    if (!fuel) {
        localStorage.setItem ("fa_fuel_cargo", "0");
        return;
    }
    localStorage.setItem ("fa_fuel_cargo", fuel.textContent.split(":")[1]);
}

addUserFunction (po_fa_save_fuel);
po_fa_save_fuel ();